package ru.gerunn.study.spring.javaxblog;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Helloe11 {

	private String s;

	public Helloe11(String str) {
		s = str;
	}

	public void sayHi() {
		System.out.println(s);
	}

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("javaxblog.beans.xml");
		Helloe11 h = (Helloe11) ac.getBean("helloe11");
		System.out.println(ac.getApplicationName());
		h.sayHi();
	}

}
